<?php
/**
 * @author guoxiaoyong
 * 精彩课堂
 */
namespace frontend\controllers;

use bc\controller\FrontController;
use bc\model\ClassroomModel;

class ClassroomController extends FrontController
{
	
	public function actionIndex()
	{
		$model = new ClassroomModel();
		$params['status'] = 1;
		$model->sort = 'update_time DESC';
		$list = $model->getList($params);
		
		$view['list'] = $list;
		return $this->render('index', $view);
	}
	
}

